<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh_CN">
<head>
	<%@ include file="../common/header.jsp" %>
	<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
	<div class="container" style="margin-top:20px">
	 	<%@ include file="../common/top.jsp" %> 
		
		<div class="row">
			<!-- 添加左边菜单栏 -->
			<div class="col-sm-3">
	            <c:set var="menu" value="notice"/>
	            <%@ include file="../common/menu.jsp" %>
	        </div>
	        
	        <div class="col-sm-9">
	            <div class="row">
	                <div class="col-sm-12">
	                    <h1 class="page-head-line">发布通知</h1>
	                </div>
	            </div>
	            <form class="" id="publishForm" action="/notice/publish.do" method="post">
	                <input type="hidden" name="currentPage" id="currentPage" value="1">
					<div class="form-group">
						<label>发布对象:</label> <select class="form-control" name="departmentId">
							<option value="-1">全部员工</option>
							<c:forEach var="entity" items="${departments}">
								<option value="${entity.id}">${entity.name}</option>
							</c:forEach> 
						</select>
					</div>
	                

	                <textarea rows="20" cols="90" name="content" placeholder="请输入公告内容"  required></textarea> 
	                
	                <button type="submit" class="btn btn-primary">
	                    <span class="glyphicon glyphicon-search"></span> 发布
	                </button> 
	                ${sendReuslt}
	            </form>
	           	
        	</div>	        
		</div>
	</div>
</body>
</html>